#include<stdio.h>

int main(){
    int c; 
    c = (getchar() != EOF);
    printf("%d \n", c); 
}
